package com.bw.d1707.springcloud.producer.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/producer/")
public class HelloController {
    @RequestMapping("hello")
    public String hello(@RequestParam("name") String name){
        System.out.println("producer:hello");
        return "{\"id\":\"1\",\"name\":\"张三\",\"sex\":\"男\",\"age\":\"19\"}";
    }
}
